package com.kuang.service;

import com.kuang.dao.ReturnMapper;
import com.kuang.pojo.Return;
import com.kuang.pojo.Sale;

import java.util.List;

public class ReturnServiceImpl  implements ReturnService{
    private ReturnMapper returnMapper;

    public void setReturnMapper(ReturnMapper returnMapper) {
        this.returnMapper = returnMapper;
    }

    @Override
    public List<Return> getReturn() {
        return returnMapper.getReturn();
    }

    @Override
    public int addReturn(Return aReturn) {
        return returnMapper.addReturn(aReturn);
    }

    @Override
    public Return getReturnById(int id) {
        return returnMapper.getReturnById(id);
    }

    @Override
    public int updateReturn(Return retur) {
        return returnMapper.updateReturn(retur);
    }

    @Override
    public int deleteReturn(int id) {
        return returnMapper.deleteReturn(id);
    }

    @Override
    public int updateflagbyid(Return re) {
        return returnMapper.updateflagbyid(re);
    }
}
